#ifndef GDBINFO_H
#define GDBINFO_H

#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <stdarg.h>
#include <assert.h>

//调试信息的宏
#define GDB_INFO_SWITCH  (1)

#define ETHERNET_GDB_INFO  (0)
#define ARP_GDB_INFO  (0)
#define IP_GDB_INFO  (0)
#define ICMP_GDB_INFO (0)
#define UDP_GDB_INFO (0)
#define TCP_GDB_INFO (1)


#define NEED_ARP_GDB  (ARP_GDB_INFO&(GDB_INFO_SWITCH))
#define NEED_IP_GDB  (IP_GDB_INFO&(GDB_INFO_SWITCH))
#define NEED_ICMP_GDB  (ICMP_GDB_INFO&(GDB_INFO_SWITCH))
#define NEED_UDP_GDB  (UDP_GDB_INFO&(GDB_INFO_SWITCH))
#define NEED_TDP_GDB  (TCP_GDB_INFO&(GDB_INFO_SWITCH))

//输出调试信息
void print_info(const char *format, ...);
void ip_to_str(uint8_t *my_ip,char *dest, int size);
#endif //GDBINFO_H